package br.com.admGearman.cadastro.apresentacao;

import br.com.admGearman.cadastro.negocio.EstEmpresaNgc;
import br.com.admGearman.cadastro.vo.EstEmpresaVo;
import br.com.admGearman.util.jsf.AbstractBean;
import br.com.admGearman.util.jsf.JSFUtil;
import br.com.r2.util.tipodado.Flag;
import br.com.r2.util.tipodado.YesNo;

public class EmpresaBean extends AbstractBean<EstEmpresaVo, EstEmpresaNgc>
{

   JSFUtil jsfUtil = new JSFUtil();
   
   public EmpresaBean()
   {
      super(EstEmpresaNgc.getInstancia());
      this.ACTION_SEARCH = "empresa";
      this.pageTitle = "titulo_empresa";
   }
   
   @Override
   public String preparaPesquisar()
   {
      String retorno = super.preparaPesquisar();
      this.getSearchObject().setFlagIntegracao(new Flag(YesNo.ALL));
      
      return retorno;
   }
}
